<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">合作单位信息</h4>
</div>

<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/Project/Company/add')}" id="addCompanyForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <div class="box-body">

            <div class="form-group">
                <label>公司名称</label>
                <input type="text" name="name" class="form-control" id="name" required placeholder="公司名称">
            </div>
            <div class="form-group">
                <label>公司类型</label>

                <select name="c_type" class="form-control" id="c_type" required>
                                {volist name="company_cat" id="vo" key="key"} 
                                <option value="{$vo.m_value}">{$vo.m_name}</option>
                                {/volist}
                        </select>

            </div>
            <div class="form-group">
                <label>联系人</label>
                <input type="text" name="contact" class="form-control" id="contact" required placeholder="联系人">
            </div>
            <div class="form-group">
                <label>电话</label>
                <input type="text" name="phone" class="form-control" id="phone" required data-bv-regexp="true" pattern="^1[34578]\d{9}$" data-bv-regexp-message="请输入正确手机号码" placeholder="电话">
            </div>
            <div class="form-group">
                <label>职位</label>
                <input type="text" name="position" class="form-control" id="position" required placeholder="职位">


            </div>


            <div class="form-group">
                <label>备注</label>
                <input type="text" name="remark" class="form-control" id="remark" placeholder="备注">
            </div>

        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>

    </form>
</div>
<script>
    $(function() {
        ajax_form_submit("addCompanyForm");
    });
</script>